﻿@using Combres.Mvc
@using StackExchange.Profiling;
<!DOCTYPE html>
<html>
<head>
    @this.InitClientTimings()
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <meta content="Nerd, Dinner, Geek, Luncheon, Dweeb, Breakfast, Technology, Bar, Beer, Wonk"
        name="keywords" />
    <meta name="description" content="Host and promote your own Nerd Dinner free!" />
    <link title="NerdDinner.com" rel="search" type="application/opensearchdescription+xml" href="@Url.Content("~/Service/OpenSearch.ashx")" />
    @RenderSection("HeaderStyle", false)
    @Html.CombresLink("layoutCss")
    @Html.CombresLink("layoutJs")
    @*@this.TimeScript("Content Site.css",
       @<link href="@Url.CDNContent("~/Content/Production.css?v=2")" rel="stylesheet" type="text/css" media="screen" />)
    @this.TimeScript("jquery-ui.css",
        @<link href="@Url.CDNContent("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />)
    @this.TimeScript("jQuery 1.7.2",
        @<script src="@Url.CDNContent("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>)
    @this.TimeScript("modernizr",
        @<script src="@Url.CDNContent("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>)
        @this.TimeScript("jquery-ui",
        @<script src="@Url.CDNContent("~/Scripts/jquery-ui-1.8.20.min.js")" type="text/javascript"></script>)
    @this.TimeScript("jquery.unobtrusive-ajax",
        @<script src="@Url.CDNContent("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>)
    @this.TimeScript("MicrosoftAjax",
        @<script src="@Url.CDNContent("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script>)
    @this.TimeScript("MicrosoftMvcAjax",
        @<script src="@Url.CDNContent("~/Scripts/MicrosoftMvcAjax.js")" type="text/javascript"></script>)
    @this.TimeScript("yepnope",
        @<script src="@Url.CDNContent("~/Scripts/yepnope.1.0.1-min.js")" type="text/javascript"></script>)
    @this.TimeScript("format",
        @<script src="@Url.CDNContent("~/Scripts/date.format.js")" type="text/javascript"></script>)
    @this.TimeScript("NerdDinner",
        @<script src="@Url.CDNContent("~/Scripts/NerdDinner.js?v=6")" type="text/javascript"></script>)
    @this.TimeScript("TimePickerAddOn",
        @<script src="@Url.CDNContent("~/Scripts/timepicker_plug/TimePickerAddOn.js")" type="text/javascript"></script>)
    @this.TimeScript("widgets.tab",
        @<script src="@Url.CDNContent("~/Scripts/widgets.tab.js")" type="text/javascript"></script>)
    @this.TimeScript("TimePickerAddOnCSS",
        @<link rel="stylesheet" type="text/css" href="@Url.CDNContent("~/Scripts/timepicker_plug/css/TimePickerAddOn.css")"/>)
     *@
    @RenderSection("HeadArea", required: false)
    
</head>
<body>
    <div class="page">
        <header>
            <div id="title">
                <h1>
                    <a href="@Url.Content("~/")" title="Nerd Dinner" class="logo"></a>
                </h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LoginStatus")
            </div>
            <nav>
                <ul id="menu">
                    <li>@Html.ActionLink("Find Dinner", "Index", "Home")</li>
                    <li>@Html.ActionLink("Host Dinner", "Create", "Dinners")</li>
                    @if (Request.IsAuthenticated)
                    {
                        <li>@Html.ActionLink("My Dinners", "My", "Dinners")</li>
                    }
                    <li class="last">@Html.ActionLink("About", "About", "Home")</li>
                </ul>
                <a class="feed" href="@Url.Content("~/Service/OData.svc")">
                    <img alt="OData Feed" title="OData Feed" src="@Url.CDNContent("~/Content/Img/icon-odatafeed-28x28.png")" /></a>
                <a class="feed" href="@Url.Content("~/Service/RSS")">
                    <img alt="RSS Feed" title="RSS Feed" src="@Url.CDNContent("~/Content/Img/icon-feed-28x28.png")" /></a>
                 <a class="feed" href="@Url.Action("iCalFeed", "Service")">
                    <img alt="iCal Calendar Feed for Nerd Dinners" title="iCal Calendar Feed for Nerd Dinners" src="@Url.CDNContent("~/Content/Img/icon-icalfeed-28x28.png")" /></a>
            </nav>
        </header>
        @RenderSection("Masthead", required: false)
        <div id="main" class="clearfix">
            @RenderBody()
        </div>
        <footer>
            Version @HttpContext.Current.Application["Version"] Code by Jack Chen 
        </footer>
        @RenderSection("FooterScript", false)
        
        @MiniProfiler.RenderIncludes()
        @Html.GoogleAnalyticsTrackingScript("UA-29988973-1")
        <script type="text/javascript">
            UserVoice.Tab.show({
                key: 'nerddinner',
                host: 'feedback.nerddinner.com',
                forum: 'general',
                alignment: 'right', /* 'left', 'right' */
                background_color: '#A2CC3B',
                text_color: 'white', /* 'white', 'black' */
                hover_color: '#7A0100',
                lang: 'en' /* 'en', 'de', 'nl', 'es', 'fr' */
            });
        </script>
    </div>
</body>
</html>
